package main

type student struct {
	name  string
	score float64
}

func (stu *student) StuInstance(n string, s float64) *student {
	return &student{n, s}
}

//类似于java的set
func (stu *student) SetName(n string) {
	stu.name = n
}

//类似于java的get
func (stu *student) GetName() string {
	return stu.name
}
